
import request from '../util/request'

//用户登录
export function login(data){
    return request.post('/user/login',data)
}

//用户注册
export function register(data){
    return request.post('/register',data)
}

//店铺注册
export function storregister(data){
    return request.post('/register/stor',data)
}

//查找该Id的用户信息
export function getUserById(id){
    return request.get(`/user/getUserinfo/${id}`)
}


//查找该Id的用户信息
export function editUserInfo(id,data){
    return request.post(`/user/alter_userinfo/${id}`,data)
}